package io.renren.modules.jxgk.service.impl;

import io.renren.modules.jxgk.dao.CourseAttendanceStateDao;
import io.renren.modules.jxgk.entity.CourseAttendanceStateEntity;
import io.renren.modules.jxgk.service.CourseAttendanceStateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CourseAttendanceStateServiceImpl implements CourseAttendanceStateService{
    @Autowired
    CourseAttendanceStateDao courseAttendanceStateDao;
    public List<CourseAttendanceStateEntity> queryList(Map<String, Object> map){
        return courseAttendanceStateDao.queryList(map);
    }
    public int queryTotal(Map<String, Object> map){
        return  courseAttendanceStateDao.queryTotal(map);
    }
    public void deleteBatch(String[] termIds){
        courseAttendanceStateDao.deleteBatch(termIds);
    }
    public void save(CourseAttendanceStateEntity ste){
        courseAttendanceStateDao.save(ste);
    }
    public CourseAttendanceStateEntity queryObject(String index){
        return courseAttendanceStateDao.queryObject(index);
    }
    public void update(CourseAttendanceStateEntity ste){
        courseAttendanceStateDao.update(ste);
    }
    public List<CourseAttendanceStateEntity> queryList2(Map<String,Object>map,String date){
        return courseAttendanceStateDao.queryList2(map,date);
    }
}
